import './Loading.scss'
import { Spin } from 'antd'
import * as React from 'react'

interface Props {
    message?: string
}

export default class Loading extends React.Component<Props, any> {
    constructor(props: Props) {
        super(props)
    }
    render() {
        return (
            <div className="loading-panel border border-radius">
                <Spin/>
                <label>{this.props.message || '加载中...'}</label>
            </div>
        )
    }
}